package lang

var ErrCode = map[string]map[interface{}]interface{}{
	"zh": {
		//[100000,200000) 异常
		100000: "系统错误",
		// redis异常
		100001: "系统错误100001",
		// mysql异常
		100002: "系统错误100002",
		// 添加历史记录失败
		100003: "系统错误100003",
		// 200000,……) 错误
		// 登录错误
		200000: "请先登录",
		200001: "用户名或密码错误",
		200002: "用户名不能为空",
		200003: "密码不能为空",
		// 公共错误[200100-201000)

		// 登录
		201001: "原密码不能为空",
		201002: "新密码不能为空",
		201003: "确认密码不能为空",
		201004: "原密码不正确",
		201005: "两次密码输入不一致",
		201006: "密码必须包含大写字码，小写字母及数字，长度不能小于8位",
		201007: "密码修改失败",
		// 团队
		202001: "新增团队失败",
		202002: "编辑团队失败",
		202003: "要编辑的团队不存在",
		202004: "您不是管理员，无权限",
		202005: "团队名称不能为空",
		202006: "不属于团队成员，无权限",
		202007: "用户不属于该团队",
		202101: "所属团队不能为空",
		202102: "所属团队不存在",
		202103: "添加团队成员失败",
		202104: "重置密码失败",
		202105: "角色设置失败",
		202201: "姓名不能为空",
		202202: "账号不能为空",
		202203: "密码不能为空",
		202204: "用户已存在",
		202205: "用户添加失败",
		202206: "用户不存在",
		202207: "设置工作团队失败",
		202208: "请先设置工作团队",
		// 待办
		203001: "新增待办失败",
		203002: "编辑待办失败",
		203003: "要编辑的待办不存在",
		203101: "主键必需",
		203102: "待办内容必需",
		203103: "待办责任人必需",
		203104: "完成状态必需",
		203105: "待办责任人必需",
		203106: "创建人必需",
		203107: "创建时间必需",
		203108: "更新时间必需",
		203109: "待办优先级不合法",
		203110: "完成状态不合法",
		203111: "所属待办类型不存在",
		203112: "截止日期必须",
		// 项目
		204001: "新增项目失败",
		204002: "编辑项目失败",
		204003: "项目不存在",
		204004: "不属于项目成员，无权限",
		204005: "项目名称不能为空",
		204006: "项目描述不能为空",
		204007: "所属团队不能为空",
		204008: "设置项目成员失败",
		204101: "所属项目不能为空",
		204102: "任务类型名称不能为空",
		204103: "任务类型不存在",
		204104: "新增任务类型失败",
		204105: "编辑任务类型失败",
		// 文档
		205001: "新增文档失败",
		205002: "编辑文档失败",
		205003: "文档不存在",
		205004: "无文档访问权限",
		205005: "文档名称不能为空",
		205101: "新增章节失败",
		205102: "编辑章节失败",
		205103: "所属文档必须",
		205104: "章节不存在",
		205105: "章节名称不能为空",
		205201: "新增章节内容失败",
		205202: "编辑章节内容失败",
		205203: "所属章节必须",
		205204: "章节版本号必须",
		205205: "章节版本不存在",
		205206: "章节版本回滚失败",
		// 上传
		206001: "文件上传失败",
	},
	"en": {
		//[100000,200000) exception
		100000: "System error",
		// redis exception
		100001: "System error 100001",
		// mysql exception
		100002: "System error 100002",
		// Failed to add history
		100003: "System error 100003",
		// 200000,...) error
		// login error
		200000: "Please login first",
		200001: "Incorrect username or password",
		200002: "Username cannot be empty",
		200003: "Password cannot be empty",
		// public error [200100-201000)

		// Log in
		201001: "The original password cannot be empty",
		201002: "New password cannot be empty",
		201003: "Confirm password cannot be empty",
		201004: "The original password is incorrect",
		201005: "The two passwords are inconsistent",
		201006: "Password must contain uppercase characters, lowercase letters and arrays, and the length cannot be less than 8 characters",
		201007: "Password change failed",
		// team
		202001: "Failed to add team",
		202002: "Editing team failed",
		202003: "The team to edit does not exist",
		202004: "You are not an administrator and do not have permission",
		202005: "Team name cannot be empty",
		202006: "Not a team member, no permission",
		202007: "User does not belong to this team",
		202101: "The owning team cannot be empty",
		202102: "The owning team does not exist",
		202103: "Failed to add team member",
		202104: "Failed to reset password",
		202105: "Failed to set role",
		202201: "Name cannot be empty",
		202202: "Account cannot be empty",
		202203: "Password cannot be empty",
		202204: "User already exists",
		202205: "Failed to add user",
		202206: "User does not exist",
		202207: "Failed to set work team",
		202208: "Please set up a work team first",
		// Upcoming
		203001: "Add to-do failed",
		203002: "Edit todo failed",
		203003: "The todo to be edited does not exist",
		203101: "Primary key required",
		203102: "To-Do Required",
		203103: "To-do responsible person required",
		203104: "Completion Status Required",
		203105: "To-Do Responsible Person Required",
		203106: "Creator required",
		203107: "Creation time required",
		203108: "Update time required",
		203109: "Todo priority is invalid",
		203110: "Invalid completion status",
		203111: "The todo type does not exist",
		203112: "Deadline must be",
		// project
		204001: "Failed to add item",
		204002: "Failed to edit item",
		204003: "Item does not exist",
		204004: "Not a member of the project, no permission",
		204005: "Project name cannot be empty",
		204006: "Item description cannot be empty",
		204007: "The owning team cannot be empty",
		204008: "Failed to set project member",
		204101: "The owning item cannot be empty",
		204102: "Task type name cannot be empty",
		204103: "Task type does not exist",
		204104: "Failed to add task type",
		204105: "Failed to edit task type",
		// documentation
		205001: "Failed to add document",
		205002: "Failed to edit document",
		205003: "Document does not exist",
		205004: "No document access rights",
		205005: "Document name cannot be empty",
		205101: "Failed to add chapter",
		205102: "Failed to edit chapter",
		205103: "The owning document must be",
		205104: "Chapter does not exist",
		205105: "Chapter name cannot be empty",
		205201: "Failed to add chapter content",
		205202: "Failed to edit chapter content",
		205203: "Chapter must be",
		205204: "Chapter version number is required",
		205205: "Chapter version does not exist",
		205206: "Chapter version rollback failed",
		// upload
		206001: "File upload failed",
	},
}
